#ifndef EDITTEAM_H
#define EDITTEAM_H

#include <QWidget>
#include "team.h"
#include "dbconnect.h"
#include <QList>
#include "playerradio.h"


namespace Ui {
class EditTeam;
}

class EditTeam : public QWidget
{
    Q_OBJECT

public:
    explicit EditTeam(QWidget *parent = 0);
    ~EditTeam();

private:
    Ui::EditTeam *ui;
    Team picked_team;
    DbConnect dbconnection;
    QList <Team *> all_teams;
    QList <PlayerRadio *> all_players;
    void populateComboBox();
    void getTeams();
    void pupulatePlayers();

private slots:
    void showPlayers();
    void saveTeam();
    void goBack();



};

#endif // EDITTEAM_H
